package com.hopu.service.Impl;

import com.hopu.mapper.ZcMapper;
import com.hopu.mapper.ZhichuMapper;
import com.hopu.pojo.Zc;
import com.hopu.pojo.Zhichu;
import com.hopu.service.ZcService;
import com.hopu.service.ZhichuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZcServiceImpl implements ZcService {
   @Autowired
   private ZcMapper zcMapper;


    @Override
    public List<Zc> findAllZc() {
        return zcMapper.findAllZc();
    }

    @Override
    public int addZc(String ctitle, long ctime, String cremark) {
        return zcMapper.addZc(ctitle,ctime,cremark);
    }

    @Override
    public Zc findZcByCid(int cid) {
        return zcMapper.findZcByCid(cid);
    }

    @Override
    public int uppZc(Zc zc) {
        return zcMapper.uppZc(zc);
    }
}
